package Z3;


public class Zadanie4 {
	public static void main(String[] args) {
		MojaLista<Integer> ml = new MojaLista<Integer>();
		ml.add(new Integer[]{0});
		ml.add(new Integer[]{0,2,3,4});
		ml.add(new Integer[]{0,10,2,1});
		ml.add(new Integer[]{30,2,3});
		ml.add(new Integer[]{1,2,3});
		System.out.println(ml.size());
		System.out.println(ml);
		System.out.println("Usuwam: "+ml.remove(7));
		System.out.println(ml);
		System.out.println(ml.size());
		System.out.println("Usuwam: "+ml.remove(7));
		System.out.println(ml);
		System.out.println(ml.size());
		for(int i=0;i<ml.size(); i++) System.out.print(ml.get(i)+" ");
		System.out.println("\n"+ml.contain(30));
		//System.out.println(ml.get(ml.size()+1));
		ml.clear();
		System.out.println(ml.size());
		System.out.println(ml);
		System.out.println(ml.get(1));
		
	}

}
